﻿@model BrnMall.Web.StoreAdmin.Models.EditLineItemModel

@section header{
    <title>编辑排队项-排队项设置</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
<script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
<script type="text/javascript" src="/admin_store/scripts/jquery.validate.js"></script>
<script type="text/javascript" src="/admin_store/scripts/jquery.validate.unobtrusive.js"></script>
}
@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 店铺管理 &gt; 排队项设置 &gt;
		@if (Model.Id > 0)
		{
			<span class="rightH1-cur">编辑排队项</span>
		}
		else
		{
			<span class="rightH1-cur">添加排队项</span>
		}
    <div class="right">
        <a href="@Url.Action("LineItemList","Restaurant")" class="menuBT"><img src="/admin_store/images/goback.jpg" />返回列表</a>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</h1>
<div class="addTable">
    @using (Html.BeginForm("SaveLineItem", "Restaurant"))
    {

        @Html.HiddenFor(x => x.Id)

        <table width="100%">
            
            <tr>
                <td width="180px" align="right">名称：</td>
                <td>
                    @Html.TextBoxFor(x => x.Name, new { @class = "input", size = "15" })@Html.ValidationMessageFor(x => x.Name)
                </td>
            </tr>
            <tr>
                <td width="180px" align="right">号码分组：</td>
                <td>
                    @Html.TextBoxFor(x => x.StartCode, new { @class = "input", size = "5" })@Html.ValidationMessageFor(x => x.StartCode)
                </td>
            </tr>
            <tr>
                <td width="180px" align="right">描述：</td>
                <td>
                    @Html.TextBoxFor(x => x.Remark, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Remark)
                </td>
            </tr>
            
            <tr>
                <td width="66px" align="right">排序：</td>
                <td>@Html.TextBoxFor(x => x.DisplayOrder, new { @class = "input", size = "5" })@Html.ValidationMessageFor(x => x.DisplayOrder)</td>
            </tr>
            

        </table>

            <table width="100%">
                <tr>
                    <td width="180px" align="right">
                        &nbsp;
                    </td>
                    <td>
                        <a href="" class="addBt" id="sumbitBut">
                            <img src="/admin_store/images/submit.jpg" />
                        </a>
                        <script type="text/javascript">
                            $(function () {
                                $("#sumbitBut").click(function () {
                                    $("form:first").submit();
                                    return false;
                                })
                            });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
    }
</div>

}